// API 响应基础类型
export interface ApiResponse<T> {
    code: number
    message: string
    record: T
}

// 用户相关类型
export interface User {
    id: number
    account: string
    nickname: string
    email: string
    avatar?: string
}

export interface LoginParams {
    account: string
    password: string
}

export interface RegisterParams {
    account: string
    nickname?: string
    email: string
    password: string
    verificationCode: string
}

export interface RestPasswordParams {
    email: string
    verificationCode: string
    newPassword: string
}
